<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of BWXMenuFormModel
 *
 * @author I062261
 */
class BWXMenuFormModel extends CFormModel {

    public $operationId;
    public $applicationId;
    public $appSecret;
    public $spaceUrl;

    /**
     * Declares the validation rules.
     * title is required
     */
    public function rules() {
        return array(
            array('operationId', 'required'),
            array('applicationId,appSecret,spaceUrl', 'safe'),
                //array ('image', 'file', 'types' => 'gif, jpg, png'),
        );
    }

    /**
     * Declares attribute labels.
     */
    public function attributeLabels() {
        return array(
            'operationId' => 'Select operation:',
            'applicationId' => 'Application ID:',
            'appSecret' => 'Application Secret:',
            'spaceUrl' => 'Space URL for WeChat',
                //'image'=>'Image',
        );
    }

}

?>
